/**
 *  后台消息管理接口
 */
import request from '@/utils/request'

//公告接口
export function getNotyList(params) {
  return request({
    url: '/msg/notyshow',
    method: 'get',
    params
  })
}

export function addNoty(data) {
  return request({
    url: '/msg/crenoty',
    method: 'post',
    data
  })
}

export function editNoty(data) {
  return request({
    url: '/msg/edtnoty',
    method: 'post',
    data
  })
}

//推送接口
export function getMsgList(params) {
  return request({
    url: '/msg/msgshow',
    method: 'get',
    params
  })
}

export function addMsg(data) {
  return request({
    url: '/msg/cremsg',
    method: 'post',
    data
  })
}
